//
//  BRCouponsBaseCell.h
//  Kexu
//
//  Created by IOS on 2023/7/25.
//

#import <UIKit/UIKit.h>
#import "BRCouponModel.h"
#import "BRSlopingView.h"

NS_ASSUME_NONNULL_BEGIN
@class BRCouponAmountView;
@class BRCouponNumView;
@interface BRCouponsBaseCell : UITableViewCell

- (void)setUI;
/// 内容
@property (nonatomic,strong) UIStackView *contView;
@property (nonatomic,strong) UIView *topView;
@property (nonatomic,strong) UIImageView *lineImg;
@property (nonatomic,strong) UIView *leftView;

@property (nonatomic,strong) UIView *rightView;

@property (nonatomic,strong) UIView *bottomView;

//@property (nonatomic,strong) UIImageView *bgImg;
@property (nonatomic,strong) BRCouponModel *dto;
/// 记录left 高度
@property (nonatomic,assign) CGFloat leftH;

@end

@interface BRListCouponsCell : BRCouponsBaseCell

@property (nonatomic,strong) BRCouponsRuleView *ruleView;

@property (nonatomic,strong) QMUILabel *typeL;
@property (nonatomic,strong) QMUILabel *timeL;
@property (nonatomic,strong) BRImgLabelView *tcView;

@property (nonatomic,strong) BRCouponAmountView *amountView;

@property (nonatomic,strong) UIControl *openBtn;

@property (nonatomic,assign) NSInteger type;

//@property (nonatomic,strong) UIStackView *stackLf;

@property (nonatomic,assign) BOOL open;

@property (nonatomic,copy) BRBOOLBlock openBlock;

- (void)br_addRightView;


@end

@interface BRCouponCenterCell : BRListCouponsCell

@property (nonatomic,strong) BRCouponNumView *progressView;

@property (nonatomic,assign) BOOL emptyPoint;

@property (nonatomic,strong) BRCouponListModel *listDto;

@end


@interface BRCouponAmountView : UIView

@property (nonatomic,strong) QMUILabel *amountL;
/// 优惠券状态
@property (nonatomic,assign) NSInteger type;
@property (nonatomic,strong) BRSlopingView *slopingView;

@end
/// 优惠券右侧数据
@interface BRCouponNumView : UIView
/// 兑换率
@property (nonatomic,strong) QMUILabel *titleL;
/// 积分不足
@property (nonatomic,strong) QMUILabel *textL;
/// 优惠券状态
@property (nonatomic,strong) UIProgressView *progressView;
@property (nonatomic,strong) QMUIButton *redeemBtn;

@property (nonatomic,copy) BRVoidBlock redeemBlock;

@end


NS_ASSUME_NONNULL_END
